package com.itheima.Day8;

import com.itheima.day6.Student;

import java.util.Comparator;
import java.util.TreeMap;

public class Demo2 {
    public static void main(String[] args) {
        TreeMap<Student, String> tm = new TreeMap<>(new Comparator<Student>() {
            @Override
            public int compare(Student o1, Student o2) {

                return 0;
            }
        });
        Student s1 = new Student("小王",19);
        Student s2 = new Student("小黑",24);
        Student s3 = new Student("小绿",11);
        tm.put(s1,"南京");
        tm.put(s1,"东京");
        tm.put(s1,"北京");

    }
}
